package yesjava;

public class Dog {
    private String name;
    private int num = NumUtils.getNumber();

    static {
        System.out.println("静态代码块");
    }

    {
        System.out.println("实例代码块");
    }

    public Dog() {
        System.out.println("构造方法");
    }



    /*public void eat() {
        System.out.println("狗粮比人的吃贵");
    }

    public static void fn1() {
        System.out.println("静态方法");
    }*/



}
